import request from '@/utils/request'

// 查询对账项目下拉框
export function listDzProjectXlk() {
  return request({
    url: '/wms/dzProject/listXlk',
    method: 'get'
  })
}

// 查询对账项目列表
export function listDzProject(query) {
  return request({
    url: '/wms/dzProject/list',
    method: 'get',
    params: query
  })
}

// 查询对账项目详细
export function getDzProject(id) {
  return request({
    url: '/wms/dzProject/' + id,
    method: 'get'
  })
}

// 新增对账项目
export function addDzProject(data) {
  return request({
    url: '/wms/dzProject',
    method: 'post',
    data: data
  })
}

// 修改对账项目
export function updateDzProject(data) {
  return request({
    url: '/wms/dzProject',
    method: 'put',
    data: data
  })
}

// 删除对账项目
export function delDzProject(id) {
  return request({
    url: '/wms/dzProject/' + id,
    method: 'delete'
  })
}
